﻿using System.Drawing;
using System.Drawing.Imaging;

namespace _17__C_如何生成透明图片
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Bitmap bitmap = new Bitmap(400,400);

            Graphics g = Graphics.FromImage(bitmap);

            g.Clear(Color.Transparent);

            g.Flush();

            bitmap.Save("test.png",ImageFormat.Png);

            bitmap.Dispose();
        }
    }
}
